package com.lysj.bhp.user.controller;

import com.lysj.bhp.user.base.UserContent;
import com.lysj.bhp.user.domain.BhpcEditLog;
import com.lysj.bhp.user.domain.WalletEditLog;
import com.lysj.bhp.user.repository.WalletEditLogRepository;
import com.lysj.bhp.util.web.Resp;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("admin/wallet_edit_log")
public class WalletEditLogController extends UserContent {

    @RequestMapping("/list")
    public Resp list(){
        List<WalletEditLog> walletEditLogList= walletEditLogRepository.findAll(new Sort(Sort.Direction.DESC, "editDate"));
        return new Resp(walletEditLogList);
    }
}
